class AssetsWebpackPlugin {
    // eslint-disable-next-line no-unused-vars
    constructor(options) {
    }
    apply(compiler) {
        compiler.hooks.emit.tap('AssetsWebpackPlugin', (compilation) => {
            compilation.assetsInfo.forEach((assetsItem, key) => {
                if (/\.css$/.test(key) && !/^static\/lib\//.test(key)) {
                    compilation.assets[key]._value = compilation.assets[key]._value.replace(/app:\/\/\//g, "app://./")
                }
            })
        })
    }
}

module.exports = AssetsWebpackPlugin;
